﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Com.CMS263.PO;
using Com.CMS263.BLL;


namespace Com.CMS263.Web.manage.ManageRegion
{
    public partial class action : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            int id = int.Parse(Request["id"]);
            RegionBLL bll = new RegionBLL();
            Region ab = (Region)bll.FindModelById("Region", id);

            bll.entity = ab;
            if (bll.Delete())
            {

                Response.Write("ok");
            }
            else
            {
                Response.Write("fail");
            }
        }
    }
}
